﻿using AutoMapper;
using Hsp.WebNovels.Model.Dtos;
using Hsp.WebNovels.Web.Models;

namespace Hsp.WebNovels.Web.Utilities
{
    /// <summary>
    /// 前端视图关系映射
    /// </summary>
    public class AutomapperHelper : Profile
    {
        public AutomapperHelper()
        {
            CreateMap<NovelDto, NovelViewModel>(); // Novels
            CreateMap<ChapterDto, ChapterViewModel>(); // Chapters
            CreateMap<WebSiteDto, WebSiteViewModel>(); // WebSites
        }
    }
}
